<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>最新热门</title>
    <link rel="stylesheet" href="../../css/mypost/mypost.css">
    <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
    <script type="text/javascript" src="../js/mypost/fenye.js"></script>

</head>

<script>
    function f() {
        var a=document.getElementById("ss").value;
    }
</script>

<body>

<form th:action="@{zuixinremen}" method="GET">
    <input type="text"    laceholder="根据标题或主题查询" id="ss" name="ptitle" value=""  style="border: 1px solid #E6E6E6;;height:28px;width:120px;">
    <input  type="submit" value="搜索" onclick="f()" style="border: 1px solid ;height:28px;width:35px;background-color: #CE090E">

</form>



<table id="adminTbody" class="table">
    <tr class="table_header">
        <th>标题</th>
        <th>类型</th>
        <th>作者</th>
        <th>发表时间</th>
        <th>点赞</th>
        <th>收藏</th>
    </tr>

    <tr  th:each="mypost,mypostStat : ${myposts}"  onmouseover="this.style.backgroundColor='lightslategray';" onmouseout="this.style.backgroundColor='#d4e3e5';">
        <td><a th:href="@{'http://localhost:8080/html/editor/viewPost.do?pid=' + ${zmpost.pid}}" target="main"  th:text="${mypost.ptitle}"></a></td>
        <td th:text="${mypost.ptype}"></td>
        <td th:text="${mypost.username}"></td>
        <td th:text="${mypost.ptime}"></td>
        <td th:text="${mypost.giveup}"></td>
        <td th:text="${mypost.collect}"></td>


    </tr>
</table>

<div class="layui-card-body ">
    <div class="page">
        <div>
            <a class="num" href="###" id="firstPage">首页</a>
            <a class="prev" href="###" id="prePage">&lt;&lt;</a>
            <span class="current" id="currentPage"></span>
            <a class="next" href="###"id="nextPage">&gt;&gt;</a>
            <a class="num" href="###" id="lastPage">尾页</a>
            <a class="num" href="###" id="totalpage"></a>
            <a class="num"> <select  id="jumpWhere"> </select></a>
            <a href="###" id="jumpPage" onclick="jumpPage()">跳转</a>
            <a class="num" id="countsum"></a>
        </div>
    </div>
</div>



</body>
</html>